// var dataUrl = '';
// $.ajax({
//     url: dataUrl,
//     dataType: 'json',
//     scriptCharset: 'utf-8',
//     success: function (data) {
//         getCarData(data);
//     }
// })

function getCarData(data){
    var obj = {
        "data": {
            "activityEndtime": "2016-05-31 17:03:35",
            "activityId": 40,
            "activityName": "秒杀每天小幸运，iPhone6等你拿",
            "activityStarttime": "2016-05-17 17:03:35",
            "awardAmount": 8,
            "cashPrice": 0.11,
            "pointPrice": 99,
            "marketPrice": 1000,
            "awardName": "2014款1.5L手动朝东超值版 (7座)",
            "mainImage" : "/resources/img/car.jpg"
        },
        "isSuccess": true,
        "message": "成功"
    }
    // var obj = data;
    $('.title_txt').text(obj.data.activityName);
    $('.good_img img').attr('src',obj.data.mainImage);
    $('.good_name p').text(obj.data.awardName);
    $('.market_num').text(obj.data.marketPrice);
    $('.sale_num').text(obj.data.cashPrice);
    $('.point_num').text(obj.data.pointPrice);
    $('.buy_button').attr('data-num','obj.data.activityId');
    $('.stock_num').text(obj.data.awardAmount);
}
getCarData();